<?php

namespace app\vpn\validate;

use think\Validate;

/**
 * IP黑名单验证器
 */
class Ipblacklist extends Validate
{
    //定义验证规则
    protected $rule = [
        'mode|模式' => 'require',
        'start_ip|起始IP' => 'require|ip',
        'end_ip|结束IP' => 'requireIf:mode,1|ip',
    ];
    //定义验证提示
    protected $message = [];
    //定义验证场景
    protected $scene = [];
}
